package com.domain.vote;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.cassandra.core.mapping.CassandraType;
import org.springframework.data.cassandra.core.mapping.Column;
import org.springframework.data.cassandra.core.mapping.Table;
import org.springframework.data.cassandra.core.mapping.UserDefinedType;

@Table("users")
@ToString(callSuper = false)
@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class Users {

    @Id
    private String id;
    private String name;

    private String position;

    @CassandraType(type = CassandraType.Name.UDT,userTypeName = "address")
    private Address address;

}